package com.haikesi.api.role.domain.po;

import javax.persistence.*;

@Table(name = "role_authority")
public class RoleAuthorityPO {
    /**
     * 角色ID
     */
    @Id
    @Column(name = "role_id")
    private String roleId;

    /**
     * 权限ID
     */
    @Id
    @Column(name = "authority_id")
    private String authorityId;

    /**
     * 获取角色ID
     *
     * @return role_id - 角色ID
     */
    public String getRoleId() {
        return roleId;
    }

    /**
     * 设置角色ID
     *
     * @param roleId 角色ID
     */
    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    /**
     * 获取权限ID
     *
     * @return authority_id - 权限ID
     */
    public String getAuthorityId() {
        return authorityId;
    }

    /**
     * 设置权限ID
     *
     * @param authorityId 权限ID
     */
    public void setAuthorityId(String authorityId) {
        this.authorityId = authorityId;
    }
}